import java.util.HashMap;
import java.util.PriorityQueue;
import java.util.Queue;

public class Test7 {
    public static void main(String[] args) {
        PriorityQueue<Integer> queue = new PriorityQueue<>(3);
        queue.offer(4);
        queue.offer(5);
        queue.offer(6);
        queue.offer(1);
        System.out.println(queue.size());

        System.out.println(queue.poll());

    }
}
